<div class="cover">
        <div class="personal-info">
            <i class="fa fa-times fa-5x" id="close_icon"></i>
           
            <div class="logout-panel" th:unless="${#httpSession.getAttribute('profile.login')==null}">
                <!-- <a href="" th:href="@{${'/users/'+#httpSession.getAttribute('profile.login').id}}" th:inline="text"> -->
                <a href="#"  th:inline="text">
                    <img class="portrait" th:src="@{${#httpSession.getAttribute('profile.login').avatar}}"/>
                </a>
                <p class="name" th:inline="text">[[${#httpSession.getAttribute('profile.login').name}]]</p>

            </div>
            <div class="login-panel" th:if="${#httpSession.getAttribute('profile.login')==null}">
                <img class="portrait" src="img/logo.png" th:src="@{/src/img/logo.png}" />
                <div class="login_register_buttons">
                    <div class="login_button"><span>登录</span></div>
                    <div class="register_button"><span>注册</span></div>
                </div>
            </div>

        </div>
        <div class="link-block">
              <a th:href="@{/}"><span>首页</span></a>
        </div>
        <div class="link-block">
            <a th:href="@{/product/list}"><span>产品</span></a>
        </div>
        <div class="link-block">
           <a th:href="@{/news/list}"><span>资讯</span></a>
        </div>

        <button class="logout-icon" th:unless="${#httpSession.getAttribute('profile.login')==null}">退出</button>

 </div>

<section th:replace="/views/mobile/partial/loginRegisterBox"></section>



